<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Goods extends Model
{
    //关联数据表
    public $table = 'goods';

    //主键
    public $primaryKey = "id";

    //允许操作的字段
    public $fillable = ['id','name','price'];

    //不允许操作的字段
    public $guarded=[];
}
